<%@ page contentType="text/html; charset=UTF-8" %>
<jsp:include page="/WEB-INF/jsp/common/init.jsp" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <%String path = request.getContextPath(); %>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>印章管理系统</title>
 <link rel="stylesheet" rev="stylesheet" type="text/css" media="screen, projection" href="<%=path%>/style_cp/css/master.css" />
 <link rel="start" href="#" title="Home" />
<script type="text/javascript" src="<%=path%>/style_cp/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="<%=path%>/style_cp/js/jquery.cookie.js"></script>
<script type="text/javascript">
	$(function(){
		setInterval(function(){
			$.ajax({
				type:"post",
				url:"${path}/ix/get_user.htm",
				success:function(islive){
					if(islive!='live'){
						ohSnap("您的登录已过期，请重新登录！","info");
						setTimeout(function(){
							window.location.reload();
						}, 2000)
						
					}
				}
			});
		}, 600000);
	})
var oplist = new Array('menu0','menu1', 'menu2', 'menu3','menu4');
$(document).ready(function() {
	if ( $.browser.msie ){
 		if( $.browser.version==6 ){
 			$("#manu p").css("margin-top","10px");
 		}
 	}
 	
	$('#manu').find("a").click(function() {
		$.each(oplist, function(i, n) {
			$('#'+n).attr('class', 'unsele');
		});
		$(this).parents("li").attr('class', 'sele');
	});
});
function showlog(){
	//top.alert(parent.mainframe.cols);
	toplog=document.getElementById("top");
	topimg=document.getElementById("logimg");
	if(toplog.style.display == 'none'){
		toplog.style.display = 'block';
		top.topmain.rows="134,*,10";
		topimg.src="<%=path%>/style_cp/icons/expand-up.gif";
		$.cookie("hsjxkhshowlog","null");	
		//alert($.cookie("hsjxkhshowlog"));	
	}else{
	 	toplog.style.display  = 'none';
	 	top.topmain.rows="40,*,10";
		topimg.src="<%=path%>/style_cp/icons/expand-down.gif";
	 	//$.cookie("hsjxkhshowlog", "andeyao");
	 	$.cookie("hsjxkhshowlog", "andeyao",{expires: 7});	 	
	}
	//alert(top.topmain.rows);
	//top.topmain.rows="14,*,13";
}
var imgext=19;
function showleftlog(){
	topimg=document.getElementById("logleftimg");
	if(imgext==18){
		top.fraleftframe.cols="228,*";
		topimg.src="<%=path%>/style_cp/icons/expand-left.gif";
		imgext=19;
	}else{
	 	top.fstMain.cols="0,*";
		topimg.src="<%=path%>/style_cp/icons/expand-right.gif";
		imgext=18;
	}
}
function tt(obj1){
	var values = ""; 
	for(var v in obj1)values += v+"\n"; //枚举每一个属性 
	window.alert(values); 
}

function getshowcookie(){	
	toplog=document.getElementById("top");
	topimg=document.getElementById("logimg");	
	
	if($.cookie("hsjxkhshowlog")!=null&&$.cookie("hsjxkhshowlog")=="andeyao"){
		//alert($.cookie("hsjxkhshowlog"));
	 	toplog.style.display  = 'none';
	 	top.topmain.rows="40,*,13";
		topimg.src="<%=path%>/style_cp/icons/expand-down.gif";	
	}
}
function mmedit(){
	var aurl ="<%=path%>/ix/user/pwd_form.htm";
	window.parent.frames[2].location = aurl;
}
function selfinfoedit(){
	var aurl ="<%=path%>/ix/user/info/edit_form.htm?user_id=${LOGIN_USER._id}";
	window.parent.frames[2].location = aurl;
}
function main(){
	var aurl ="<%=path%>/ix/main.htm";
	window.parent.frames[2].location = aurl;
}
function logout(){
	window.top.location.href="${path}/logout.htm";
}
</script>
</head>
<body id="" style="overflow-y: hidden;" onload="getshowcookie()">
<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
 <div id="warp">
	<input type="hidden" id="idsysMenuBm" name="sysMenuBm"/>
 <!-- top -->
   <div id="top" onclick="main()">
     <h1>
      <a href="" title="系统">系统</a>
     </h1>
	 <ul>
		      <!-- 
		     <li><a href="daily.action?menubm=06" title="" target="fraLeftFrame"><img src="img/1.png" alt=""/> 日志管理</a></li>
		      -->
	 </ul>
     <div>
     <p><!-- 中国农业银行监制 --> </p><br/>
   <script type="text/javascript"> 
        today=new Date();
        function initArray(){
        this.length=initArray.arguments.length;
        for(var i=0;i<this.length;i++)
        this[i+1]=initArray.arguments[i]; }
        document.write("<font color="+"#000000"+">"+today.getFullYear(),"年",today.getMonth()+1,"月",today.getDate(),"日  "); 
        var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六"+"</font>"); 
      </script>
      <script type="text/javascript">document.write(d[today.getDay()+1]+"  ");</script>
      <span id="liveclock"></span>         
		<script type="text/javascript">
        function time()
        {
         var Digital=new Date();
         var hours=Digital.getHours();
         var minutes=Digital.getMinutes();
         var seconds=Digital.getSeconds() ;
         if(minutes<=9){
         minutes="0"+ minutes;
         }
         if(seconds<=9){
         seconds="0"+seconds;
         }
         myclock=hours+":"+minutes+":"+seconds;
         if(document.layers){document.layers.liveclock.document.write(myclock);
         document.layers.liveclock.document.close();
         }else if(document.all)
         liveclock.innerHTML=myclock;
         setTimeout("time()",1000);
        }
        time();
       </script>   
     </div>     
   </div>
   <div id="manu">
    <p>
	    <a href="javascript:showlog()" title="收起/展开左菜单"><img id="logimg" src="<%=path%>/style_cp/icons/expand-up.gif" /></a>
	   [${bankName}]<a href="javascript:selfinfoedit()" style="color:#fff;" title="资料修改"> ${LOGIN_USER.uname}</a> ，您好！
	    <a href="javascript:mmedit()" style="color:#fff;font-size:12px;" title="修改密码">[密码修改]</a>
	    <a href="javascript:logout()" style="color:#fff;font-size:12px;" title="退出">[退出]</a>   
    </p>
    <ul>
      ${head_menu}
    </ul>
   </div>
 <!-- top end -->

 </div>
</body>

</html>